package com.ttxxi.controller;

import com.ttxxi.utils.AliOSSUtil;
import org.junit.Test;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;

@RestController
public class TestConroller {

    @RequestMapping("testOSS")
    public String testOSS(MultipartFile file){

        AliOSSUtil.uploadObject(file, "test/muxin.sql");

        return "success";
    }

    @RequestMapping("testConnect")
    public String testConnect(){
        return "success";
    }

}
